package com.zhang.spring.d_springaop;


import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.zhang.spring.Service.userService;
import com.zhang.spring.pojo.User;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:com/zhang/spring/d_springaop/applicationcontext.xml")
public class DemoTest {
//	spring的junit测试
	@Resource(name="userServiceTarget")
	private userService us;
	
	@Test
	public void testname02() {
		us.save();
		
//		System.out.println(us);
	
	}
}
